package com.weixing.mall.provider.model.dto;

import com.weixing.mall.base.enums.IsEnableEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @ClassName SpecDto
 * @Description TODO <br/>
 * @Author gjq
 * @Modified By:
 * @Date 2019/8/9
 * @Version 1.0
 **/
@Data
@ApiModel(description = "商品规格")
public class SpecDto {

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "规格名称")
    @NotNull(message = "规格名称不能为空")
    private String specName;

    @ApiModelProperty(value = "展示类型")
    private Integer specType;

    @ApiModelProperty(value = "规格描述")
    private String specDesp;

    @ApiModelProperty(value = "排序")
    private Integer orderBy;

    @ApiModelProperty(value = "是否可用")
    private IsEnableEnum isEnable;
}
